//
// Created by tjlhz on 2022/6/25.
//

#ifndef SUMMER_STUDY_USERMANAGER_H
#define SUMMER_STUDY_USERMANAGER_H

#include "Admin.h"
#include "Teacher.h"
#include "Student.h"
#include <vector>


class UserManager {
public:
    UserManager();
    ~UserManager();

    vector<CAdmin*> mAdminVec;
    vector<CTeacher*> mTeacherVec;
    vector<CStudent*> mStudentVec;

    CAdmin * AdminLogin(int adminId, string psw);
    CTeacher * TeacherLogin(int teacherId, string psw);
    CStudent * StudentLogin(string studentNo, string psw);

    bool InsertAdmin(CAdmin admin);
    bool EditStudent(CStudent student);
    bool DelStudent(CStudent student);


    CStudent GetStudent(string studentId);
    vector<CStudent *> GetClassStudent(string classId);
};


#endif //SUMMER_STUDY_USERMANAGER_H
